import axios from 'axios';

let baseURL = 'http://110.42.173.81:8080';

const http = axios.create({
  baseURL,
  timeout: 30000,
});
http.interceptors.request.use(config => {
  config.headers['Content-Type'] = 'application/json';
  return config;
});
http.interceptors.response.use(config => {
  return config;
});

export { http, baseURL };
